﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace BusinessObjects
{
    [DataContract]
    public class SimplePoint : BaseBusinessObject
    {
        private double x;
        private double y;

        [DataMember]
        public double X
        {
            get
            {
                return this.x;
            }
            set
            {
                if ( this.x != value )
                {
                    this.x = value;
                    base.NotifyPropertyChanged( "X" );
                }
            }
        }

        [DataMember]
        public double Y
        {
            get
            {
                return this.y;
            }
            set
            {
                if ( this.y != value )
                {
                    this.y = value;
                    base.NotifyPropertyChanged( "Y" );
                }
            }
        }
    }
}
